#include <stdio.h>

int main()
{
    int arr[10] = { 0 };
    int i = 0;
    int m = 0;
    printf("请输入十个数：");
    for(i = 0 ; i < 10 ; i++)
    {
        scanf("%d", &arr[i]);
    }
    for(i = 0 ; i < 10 ; i++)
    {
        if(arr[i] > arr[i+1])
        {
            m = arr[i+1];
            arr[i+1] = arr[i];
            arr[i] = m;
        }
    }
    printf("%d", arr[9]);

    return 0;
}